﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="DewDroplist.aspx.vb" Inherits="Macrography.DewDrop" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>   
    <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
        <h2>&nbsp;</h2> 
               
    <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

   <asp:Panel ID="panelContainer" runat="server">       
       <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        
                        <br />
                     
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            DataSourceID="SqlDataSource1" DataKeyNames="Img_Id" 
                            style="margin-top: 0px">
                            <Columns>
                                <asp:BoundField DataField="Img_Id" HeaderText="Img_Id" 
                                    SortExpression="Img_Id" InsertVisible="False" ReadOnly="True" />
                                <asp:BoundField DataField="Img_Description" HeaderText="Img_Description" 
                                    SortExpression="Img_Description" />
                                <asp:BoundField DataField="Cat_Id" HeaderText="Cat_Id" 
                                    SortExpression="Cat_Id" />
                                <asp:ImageField DataImageUrlField="Images">
                                    <ControlStyle Height="150px" Width="150px" />
                                </asp:ImageField>
                                <asp:HyperLinkField DataNavigateUrlFields="Img_Id" 
                                    DataNavigateUrlFormatString="DewDropDetail.aspx?Img_Id={0}" Text="Detail" >
                                </asp:HyperLinkField>
                            </Columns>
                        </asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:MacrgraphyConnectionString %>" 
                            ProviderName="<%$ ConnectionStrings:MacrgraphyConnectionString.ProviderName %>" 
                            
                            
                            SelectCommand="SELECT [Img_Id], [Images], [Img_Description], [Cat_Id] FROM [Images] WHERE ([Cat_Id] = ?)">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="1" Name="Cat_Id" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                       
                        <br />
                        &nbsp;<br />
                         <br />
                        <br />
                     
                        <br />
                     
                        <br />
                     
                        <br />
                        <br />
                     
                    </ContentTemplate>
                </asp:UpdatePanel>
                       
            

       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                
            </asp:Panel> </asp:Content>
    
    
   


   
